<script>
	const obj = {
		name: 'henry',
		age: 18,
		love: [],
		set setAge(value) {
			this.age = value
		},
		set setLove(value) {
			this.love = value
		}
	}
	// const refRes = Reflect.set(obj, 'name', '小李大王') //=>  obj 成功修改为: {name: '小李大王', age: 18}
	const refRes = Reflect.set(obj, 'setAge', 12) //=> {name: 'henry', age: 12}
	console.log(refRes) //=> true 返回的是布尔值，是否修改成功
	console.log(obj)

	console.log('===')

	const r = { love: [] }
	const refRes2 = Reflect.set(obj, 'setLove', ['吃', '喝'], r)
	console.log(obj) //=> {name: 'henry', age: 12, love: []}
	console.log(r) //=> {love: ['吃', '喝']}
</script>